#include"mystdio.h"
#include"mymath.h"
#include<string.h>
#include<unistd.h>


int main()
{
    MyFILE* pf = my_fopen("log.txt", "a");
    if(pf == NULL)
    {
        return 1;
    }
    const char* str = "hello world\n";
    int count = 10;
    while(count--)
    {
        my_fwrite(str, strlen(str), pf);
        //sleep(1);
    }
    my_fclose(pf);

    return 0;
}
